package main

import "fmt"

/*
* Author: JacksonCoder
* CreateTime: 2025/5/19
 */

type op_func func(int, int) int

func Add(a, b int) int {
	return a + b
}

func Sub(a, b int) int {
	return a - b
}

func operator(op op_func, a, b int) int {
	return op(a, b)
}

func main() {
	var a, b int
	Add(a, b)

	var c op_func
	c = Add
	fmt.Println(Add)
	fmt.Println(c)

	sum := operator(c, 100, 200)
	fmt.Println(sum)
}
